package com.winshare.saleAssistant.dao;

import com.winshare.saleAssistant.domain.entity.FileDO;
import com.winshare.saleAssistant.domain.query.FileQuery;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@Mapper
public interface FileMapper {

    /**
     * @param fileDO 保存资料库
     * @return
     */
    int saveFile(FileDO fileDO);

    /**
     * @param fileDO 修改资料库
     * @return
     */
    int updateFile(FileDO fileDO);

    /**
     * @param fileDO 删除资资料库
     * @return
     */
    int deleteFile(FileDO fileDO);

    /**
     * @param fileQuery 查找资料库
     * @return
     */
    List<FileDO> findFileListByConditions(FileQuery fileQuery);
    /**
     * @param fileQuery 分页统计资料库总条数
     * @return
     */
    int countFileListByConditions(FileQuery fileQuery);

    /**
     * @param fileDO 获取资料库
     * @return
     */
    FileDO getFile(FileDO fileDO);

}
